<!DOCTYPE HTML>
<html lang="zh-hans" >
    <!-- Start book Python基础 -->
<!-- Start book Python基础 -->
    <head>
        <!-- head:start -->
<!-- head:start -->
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>什么是编程语言 | Python基础</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="姜伟">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="gitbook/style.css">
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-prism/prism.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-splitter/splitter.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="chapter03.html" />
    
    
    <link rel="prev" href="chapter01.html" />
    

        <!-- head:end -->
<!-- head:end -->
    </head>
    <body>
        <!-- body:start -->
<!-- body:start -->
        
    <div class="book"
        data-level="2"
        data-chapter-title="什么是编程语言"
        data-filepath="chapter02.md"
        data-basepath="."
        data-revision="Mon Feb 03 2020 11:09:50 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="index.html">
                
                        <i class="fa fa-check"></i>
                        
                        学习目标
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="chapter01.html">
            
                
                    <a href="chapter01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        计算机组成
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2" data-path="chapter02.html">
            
                
                    <a href="./chapter02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        什么是编程语言
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3" data-path="chapter03.html">
            
                
                    <a href="chapter03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        Python语言介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4" data-path="chapter04.html">
            
                
                    <a href="chapter04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        安装配置Python
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5" data-path="chapter05.html">
            
                
                    <a href="chapter05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        开发工具介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6" data-path="chapter06.html">
            
                
                    <a href="chapter06.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        Pycharm的基本使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7" data-path="chapter07.html">
            
                
                    <a href="chapter07.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        交互式编程
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8" data-path="chapter08.html">
            
                
                    <a href="chapter08.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.</b>
                        
                        注释的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="9" data-path="chapter09.html">
            
                
                    <a href="chapter09.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.</b>
                        
                        变量及数据类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="10" data-path="chapter10.html">
            
                
                    <a href="chapter10.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>10.</b>
                        
                        标识符和关键字
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="11" data-path="chapter11.html">
            
                
                    <a href="chapter11.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>11.</b>
                        
                        输出语句
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="12" data-path="chapter12.html">
            
                
                    <a href="chapter12.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>12.</b>
                        
                        输入语句
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    本书使用 GitBook 发布
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="" >Python基础</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#x662F;&#x4EC0;&#x4E48;&#xFF1F;">&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#x662F;&#x4EC0;&#x4E48;&#xFF1F;</h1>
<p>Python &#x4EE3;&#x7801;&#x793A;&#x4F8B;&#xFF1A;</p>
<pre><code class="lang-python">print(<span class="hljs-string">&quot;hello world&quot;</span>)
</code></pre>
<p>&#x8FD9;&#x6BB5;&#x4EE3;&#x7801;&#x5728;&#x7A0D;&#x540E;&#x7684;&#x8BFE;&#x7A0B;&#x5C31;&#x4F1A;&#x5B66;&#x4E60;&#x5230;&#xFF0C;&#x5B83;&#x80FD;&#x8BA9;&#x7535;&#x8111;&#x5728;&#x5C4F;&#x5E55;&#x4E0A;&#x6253;&#x5370;&quot;hello world&quot;&#x8FD9;&#x6837;&#x4E00;&#x6BB5;&#x5185;&#x5BB9;&#x3002;</p>
<p>&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x8FD9;&#x6BB5;&#x4EE3;&#x7801;&#x662F;&#x7531;&#x82F1;&#x6587;&#x5355;&#x8BCD;&#x548C;&#x6807;&#x70B9;&#x7B26;&#x53F7;&#x6765;&#x7EC4;&#x6210;&#x7684;&#xFF0C;&#x5B9E;&#x9645;&#x4E0A;&#x7F16;&#x7A0B;&#x5C31;&#x50CF;&#x662F;&#x5199;&#x4F5C;&#x6587;&#xFF0C;&#x53EA;&#x662F;&#x4E66;&#x5199;&#x7684;&#x65F6;&#x5019;&#x5FC5;&#x987B;&#x8981;&#x9075;&#x5B88;&#x4E00;&#x4E9B;&#x7279;&#x6B8A;&#x7684;&#x683C;&#x5F0F;&#x89C4;&#x5B9A;&#x3002;</p>
<p>&#x4F46;&#x662F;&#x8BA1;&#x7B97;&#x673A;&#x662F;&#x57FA;&#x4E8E;&#x4E8C;&#x8FDB;&#x5236;&#x7684; 0 &#x548C; 1 &#x6765;&#x5904;&#x7406;&#x8FD0;&#x7B97;&#xFF0C;&#x6240;&#x4EE5;&#x5F53;&#x4ECA;&#x7684;&#x4E16;&#x754C;&#x624D;&#x4F1A;&#x53EB;&#x6570;&#x5B57;&#x5316;&#x65F6;&#x4EE3;&#x3002;&#x8FD9;&#x79CD; 0 &#x548C; 1 &#x7684;&#x7EC4;&#x5408;&#x6307;&#x4EE4;&#x53C8;&#x53EB;&#x505A;&#x673A;&#x5668;&#x8BED;&#x8A00;&#xFF0C;&#x673A;&#x5668;&#x8BED;&#x8A00;&#x662F;&#x7535;&#x8111;&#x80FD;&#x591F;&#x76F4;&#x63A5;&#x5904;&#x7406;&#x7684;&#x6307;&#x4EE4;&#xFF0C;&#x6362;&#x800C;&#x8A00;&#x4E4B;&#x7535;&#x8111;&#x6839;&#x672C;&#x4E0D;&#x8BA4;&#x8BC6;&#x6211;&#x4EEC;&#x7F16;&#x7A0B;&#x65F6;&#x5199;&#x7684;&#x82F1;&#x6587;&#x5355;&#x8BCD;&#x548C;&#x6807;&#x70B9;&#x7B26;&#x53F7;&#x3002;</p>
<p>&#x90A3;&#x4E48;&#x6211;&#x4EEC;&#x7F16;&#x7A0B;&#x5199;&#x7684;&#x4EE3;&#x7801;&#x7A76;&#x7ADF;&#x5982;&#x4F55;&#x63A7;&#x5236;&#x7535;&#x8111;&#x8FD0;&#x884C;&#x7684;&#xFF1F;</p>
<p>&#x5C31;&#x50CF;&#x6211;&#x4EEC;&#x548C;&#x5916;&#x56FD;&#x4EBA;&#x8BF4;&#x8BDD;&#x8981;&#x628A;&#x5185;&#x5BB9;&#x7FFB;&#x8BD1;&#x6210;&#x82F1;&#x8BED;&#x4E00;&#x6837;&#x3002;&#x5982;&#x679C;&#x6211;&#x4EEC;&#x7684;&#x4EE3;&#x7801;&#x60F3;&#x8981;&#x8FD0;&#x884C;&#xFF0C;&#x5C31;&#x5FC5;&#x987B;&#x8981;&#x7ECF;&#x8FC7;&#x7FFB;&#x8BD1;&#x5904;&#x7406;&#xFF0C;&#x628A; Python &#x8BED;&#x8A00;&#x7684;&#x4EE3;&#x7801;&#x7FFB;&#x8BD1;&#x6210;&#x673A;&#x5668;&#x8BED;&#x8A00;&#xFF0C;&#x8FD9;&#x4E2A;&#x8FC7;&#x7A0B;&#x53EB;&#x505A; &#x7F16;&#x8BD1;&#xFF0C;&#x7528;&#x6765;&#x5904;&#x7406;&#x4EE3;&#x7801;&#x7F16;&#x8BD1;&#x7684;&#x8F6F;&#x4EF6;&#x53EB;&#x505A; &#x7F16;&#x8BD1;&#x5668;&#x3002;</p>
<p>&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#x5C31;&#x662F;&#x7528;&#x6765;&#x5B9A;&#x4E49; &#x8BA1;&#x7B97;&#x673A;&#x7A0B;&#x5E8F; &#x7684;&#x5F62;&#x5F0F;&#x8BED;&#x8A00;&#x3002;&#x6211;&#x4EEC;&#x901A;&#x8FC7;&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#x6765;&#x7F16;&#x5199;&#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&#xFF0C;&#x518D;&#x901A;&#x8FC7;&#x8BED;&#x8A00;&#x5904;&#x7406;&#x7A0B;&#x5E8F;&#x6267;&#x884C;&#x5411;&#x8BA1;&#x7B97;&#x673A;&#x53D1;&#x9001;&#x6307;&#x4EE4;&#xFF0C;&#x8BA9;&#x8BA1;&#x7B97;&#x673A;&#x5B8C;&#x6210;&#x5BF9;&#x5E94;&#x7684;&#x5DE5;&#x4F5C;&#x3002;</p>
<p>&#x7B80;&#x5355;&#x6765;&#x8BF4;&#xFF0C;<strong>&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#x5C31;&#x662F;&#x4EBA;&#x7C7B;&#x548C;&#x8BA1;&#x7B97;&#x673A;&#x8FDB;&#x884C;&#x4EA4;&#x6D41;&#x7684;&#x8BED;&#x8A00;&#x3002;</strong></p>
<h1 id="&#x8BA1;&#x7B97;&#x673A;&#x662F;&#x5982;&#x4F55;&#x5904;&#x7406;&#x7A0B;&#x5E8F;&#x7684;&#xFF1F;">&#x8BA1;&#x7B97;&#x673A;&#x662F;&#x5982;&#x4F55;&#x5904;&#x7406;&#x7A0B;&#x5E8F;&#x7684;&#xFF1F;</h1>
<p>&#x6309;&#x7167;&#x51AF;&#xB7;&#x8BFA;&#x4F9D;&#x66FC;&#x5B58;&#x50A8;&#x7A0B;&#x5E8F;&#x7684;&#x539F;&#x7406;&#xFF0C;&#x8BA1;&#x7B97;&#x673A;&#x7684;&#x5DE5;&#x4F5C;&#x6D41;&#x7A0B;&#x5927;&#x81F4;&#x5982;&#x4E0B;&#xFF1A;</p>
<p>&#x7528;&#x6237;&#x6253;&#x5F00;&#x7A0B;&#x5E8F;&#xFF0C;&#x7A0B;&#x5E8F;&#x5F00;&#x59CB;&#x6267;&#x884C;&#xFF1B;
&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x5C06;&#x7A0B;&#x5E8F;&#x5185;&#x5BB9;&#x548C;&#x76F8;&#x5173;&#x6570;&#x636E;&#x9001;&#x5165;&#x8BA1;&#x7B97;&#x673A;&#x7684;&#x5185;&#x5B58;&#xFF1B;
CPU&#x6839;&#x636E;&#x7A0B;&#x5E8F;&#x5185;&#x5BB9;&#x4ECE;&#x5185;&#x5B58;&#x4E2D;&#x8BFB;&#x53D6;&#x6307;&#x4EE4;&#xFF1B;
CPU&#x5206;&#x6790;&#x3001;&#x5904;&#x7406;&#x6307;&#x4EE4;&#xFF0C;&#x5E76;&#x4E3A;&#x53D6;&#x4E0B;&#x4E00;&#x6761;&#x6307;&#x4EE4;&#x505A;&#x51C6;&#x5907;&#xFF1B;
&#x53D6;&#x4E0B;&#x4E00;&#x6761;&#x6307;&#x4EE4;&#x5E76;&#x5206;&#x6790;&#x3001;&#x5904;&#x7406;&#xFF0C;&#x5982;&#x6B64;&#x91CD;&#x590D;&#x64CD;&#x4F5C;&#xFF0C;&#x76F4;&#x81F3;&#x6267;&#x884C;&#x5B8C;&#x7A0B;&#x5E8F;&#x4E2D;&#x5168;&#x90E8;&#x6307;&#x4EE4;&#xFF0C;&#x6700;&#x540E;&#x5C06;&#x8BA1;&#x7B97;&#x7684;&#x7ED3;&#x679C;&#x653E;&#x5165;&#x6307;&#x4EE4;&#x6307;&#x5B9A;&#x7684;&#x5B58;&#x50A8;&#x5668;&#x5730;&#x5740;&#x4E2D;&#x3002;</p>
<p><img src="imgs/&#x7F16;&#x8BD1;&#x578B;&#x548C;&#x89E3;&#x91CA;&#x578B;&#x8BED;&#x8A00;&#x5DE5;&#x4F5C;&#x5BF9;&#x6BD4;.png" alt=""></p>
<p>C&#x8BED;&#x8A00;(&#x7F16;&#x8BD1;&#x578B;&#x8BED;&#x8A00;)&#x4EE3;&#x7801;&#x793A;&#x4F8B;:</p>
<pre><code class="lang-c"><span class="hljs-preprocessor">#<span class="hljs-keyword">include</span> <span class="hljs-string">&lt;stdio.h&gt;</span></span>
<span class="hljs-preprocessor">#<span class="hljs-keyword">include</span> <span class="hljs-string">&lt;stdlib.h&gt;</span></span>
<span class="hljs-function"><span class="hljs-keyword">int</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span>{
    <span class="hljs-built_in">printf</span>(<span class="hljs-string">&quot;Hello world!\n&quot;</span>);
    system(<span class="hljs-string">&quot;pause&quot;</span>);
    <span class="hljs-keyword">return</span> <span class="hljs-number">0</span>;
}
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="chapter01.html" class="navigation navigation-prev " aria-label="Previous page: 计算机组成"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="chapter03.html" class="navigation navigation-next " aria-label="Next page: Python语言介绍"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="gitbook/app.js"></script>

    
    <script src="gitbook/plugins/gitbook-plugin-splitter/splitter.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-copy-code-button/toggle.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"prism":{},"splitter":{},"copy-code-button":{},"toggle-chapters":{},"highlight":{},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        <!-- body:end -->
<!-- body:end -->
    </body>
    <!-- End of book Python基础 -->
<!-- End of book Python基础 -->
</html>
